home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cxl400.arc / CXLSTR.H < prev    next >
Text File  |  1988-11-19  |  3KB  |  68 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  CXLSTR.H - CXL (c) 1987, 1988 by Mike Smedley.                          │
  6.    │                                                                          │
  7.    │  This header file contains function prototypes and definitions for       │
  8.    │  string manipulating functions.                                          │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if defined(__TURBOC__)
  15.     #if __STDC__
  16.         #define _Cdecl
  17.     #else
  18.         #define _Cdecl  cdecl
  19.     #endif
  20.     #define _Near
  21. #elif defined(__ZTC__)
  22.     #define _Cdecl
  23.     #define _Near
  24. #elif defined(M_I86) && !defined(__ZTC__)
  25.     #if !defined(NO_EXT_KEYS)
  26.         #define _Cdecl  cdecl
  27.         #define _Near   near
  28.     #else
  29.         #define _Cdecl
  30.         #define _Near
  31.     #endif
  32. #endif
  33.  
  34.  
  35. /*---------------------------[ Function Prototypes ]-------------------------*/
  36.  
  37. int      _Cdecl cvaltype(int ch,int ctype);
  38. int      _Cdecl strblank(char *str);
  39. char    *_Cdecl strbmatch(char *str,char *strarr[]);
  40. int      _Cdecl strchg(char *str,int oldch,int newch);
  41. char    *_Cdecl strcode(char *str,char *key);
  42. char    *_Cdecl strdel(char *substr,char *str);
  43. int      _Cdecl strichg(char *str,int oldch,int newch);
  44. char    *_Cdecl stridel(char *substr,char *str);
  45. char    *_Cdecl striinc(char *str1,char *str2);
  46. char    *_Cdecl strinc(char *str1,char *str2);
  47. char    *_Cdecl strins(char *instr,char **str,int st_pos);
  48. int      _Cdecl striocc(char *str,int ch);
  49. char    *_Cdecl strltrim(char *str);
  50. int      _Cdecl strmatch(char *str1,char *str2);
  51. char    *_Cdecl strmid(char *str,int st_pos,int num_chars);
  52. int      _Cdecl strocc(char *str,int ch);
  53. char    *_Cdecl strrol(char *str,int count);
  54. char    *_Cdecl strror(char *str,int count);
  55. char    *_Cdecl strsetsz(char **str,int newsize);
  56. char    *_Cdecl strshl(char *str,int count);
  57. char    *_Cdecl strshr(char *str,int count);
  58. char    *_Cdecl strtrim(char *str);
  59. char    *_Cdecl struplow(char *str);
  60. int      _Cdecl touplow(char *str,char *pos,int ch);
  61.  
  62.  
  63. /*-----------------------[ Macro-Function Definitions ]----------------------*/
  64.  
  65. #define strleft(st,nu)      strmid(st,0,nu)
  66. #define strright(st,nu)     strmid(st,strlen(st)-nu,nu)
  67. #define strrtrim(st)        strtrim(st)
  68.